package com.wuyou.service.impl;

import com.wuyou.entity.TbContract;
import com.wuyou.mapper.TbContractMapper;
import com.wuyou.service.ITbContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yz
 * @since 2022-09-30
 */
@Service
public class TbContractServiceImpl extends ServiceImpl<TbContractMapper, TbContract> implements ITbContractService {

    @Autowired
    private TbContractMapper contractMapper;
    
    @Override
    public void addContract(TbContract tbContract) {
       contractMapper.insert(tbContract);
    }

    @Override
    public void updateStatus(TbContract contract) {
        contractMapper.updateById(contract);
    }
}
